import IShape from "../interfaces/IShape";
import Vector2 from "../maths/Vector2";
import ITransformable from "../interfaces/ITransformable";
import IRenderState from "../interfaces/IRenderState";

export default class EndClipShape implements IShape {
    public data: any;
    public hitTest(localPt: Vector2, transform: ITransformable): boolean {
        return false;
    }

    public beginDraw(transformable: ITransformable, state: IRenderState, context: CanvasRenderingContext2D): void {

    }

    public draw(transformable: ITransformable, state: IRenderState, context: CanvasRenderingContext2D): void {

    }

    public endDraw(transformable: ITransformable, state: IRenderState, context: CanvasRenderingContext2D): void {
        context.restore();
    }

    public get type(): string {
        return "EndCLipShape";
    }
}
